CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(inlinehook)

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fdeclspec")

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_MACOSX_RPATH 1)
endif()

ADD_LIBRARY(dynamic SHARED dynamic.c dynamic.s)
ADD_EXECUTABLE(main main.c)
TARGET_LINK_LIBRARIES(main dynamic)
